package question4;

public class Programmer extends Worker implements getMoney {
    public Programmer() {
        super();
    }

    public Programmer(String name, int salary) {
        super(name, salary);
    }
    @Override
    public void getMoney(Company company) {
        System.out.println("给李小亮发工资"+super.getSalary()+"元,公司剩余："+(company.getMoney()-super.getSalary())+"元");
        company.setMoney(company.getMoney()-super.getSalary());
    }
}
